package com.huolian.calculator;

import com.huolian.calculator.entity.Calculator;
import com.huolian.calculator.service.CalculatorService;

public class SimpleCalculator {
    public static void main(String[] args) {
        //模拟计算器加法
        Calculator calculator = new Calculator();
        CalculatorService service = new CalculatorService();

        int result = service.addSimpleFunction(calculator.getOneButton(),calculator.getTwoButton());
        System.out.println(result);
    }
}